/**
 * (created at 2011-2-18)
 */
package qiushuo.mysqlparser.ast.statement;

import qiushuo.mysqlparser.generator.SQLType;

/**
 * @author <a href="mailto:QiuShuo1985@gmail.com">QIU Shuo</a>
 */
public class MTLTansactionLevelSetStatement implements Statement {
    public final static int SCOPE_GLOBAL = 1;
    public final static int SCOPE_SESSION = 2;
    public final static int SCOPE_NEXT = 3;

    public final static int ISOLATION_LEVEL_READ_UNCOMMIT = 1;
    public final static int ISOLATION_LEVEL_READ_COMMITED = 2;
    public final static int ISOLATION_LEVEL_REPEATABLE_READ = 3;
    public final static int ISOLATION_LEVEL_SERIALIZABLE = 4;

    private final int scope;
    private final int isolationLevel;

    /**
     * @param scope
     * @param isolationLevel
     */
    public MTLTansactionLevelSetStatement(int scope, int isolationLevel) {
        super();
        this.scope = scope;
        this.isolationLevel = isolationLevel;
    }

    public int getScope() {
        return scope;
    }

    public int getIsolationLevel() {
        return isolationLevel;
    }

    @Override
    public String generateSql(SQLType type) {
        // QS_TODO gen sql
        throw new UnsupportedOperationException("not implemented yet");
    }
}
